package com.yz.lzq.liwushuo.persenter;

import com.yz.lzq.liwushuo.model.IGiftBiz;
import com.yz.lzq.liwushuo.model.GiftBiz;
import com.yz.lzq.liwushuo.model.OnGiftGetDataListener;
import com.yz.lzq.liwushuo.view.IGiftView;

/**
 * Created by AdminJia on 2016/11/24.
 */

public class GiftPersenter {
    private IGiftBiz iMeiRiTuiJianBiz;
    private IGiftView iMeiRiTuiJianView;

    public GiftPersenter(IGiftView iMeiRiTuiJianView) {
        this.iMeiRiTuiJianView = iMeiRiTuiJianView;
        this.iMeiRiTuiJianBiz = new GiftBiz();
    }

    public void loadData() {
        iMeiRiTuiJianBiz.getMeiRiTuiJianTitleData(new OnGiftGetDataListener() {
            @Override
            public void getDataSuccess(String[] arrtitles) {


                iMeiRiTuiJianView.onSuccess(arrtitles);
            }

            @Override
            public void getDataFaile(Throwable t) {
                iMeiRiTuiJianView.onFail(t.getMessage());
            }
        });
    }
    public void LoadVpData() {

    }

}
